Technical Q&AQTMTB 04 - SetTextSampleData (1-May-95)SetTextSampleData allows you to set values prior to calling AddTextSample or AddTESample. Two types are currently supported: dropShadowOffsetType and dropShadowTranslucencyType. The first type, dropShadowOffsetType, is the drop shadow offset. Pass the address of a point for the data parameter. dropShadowTranslucencyType is the drop shadow translucency. Pass a value from 0 to 255, where 0 is the lightest and 255 is the darkest. #define dropShadowOffsetType 'drpo' #define dropShadowTranslucencyType 'drpt' pascal ComponentResult SetTextSampleData(MediaHandler mh, void *data, OSType dataType) Errors: The following sample code snippet demonstrates the use of SetTextSampleData. short trans = 127;
Be sure to turn on the dfDropShadow display flag when you call AddTextSample or AddTESample. If you pass nil for textColor and/or backColor parameters in AddTextSample or AddTESample, they default to black (for textColor) and white (for backColor). See also: QuickTime Technote QT4. Technical Q&A Previous Question | Contents | Next Question |